import { postAction } from '../request'

export interface IApi {
  uploadAttr: BaseResponseFn;
  blogUploadImage: BaseResponseFn;
  blogUploadVaild: BaseResponseFn;
  fileDel: BaseResponseFn;
}

// 上传头像接口
const URL_userUploadAttr = '/note/user-upload-attr'
export const userUploadAttr = (params?: any, option?: any) => postAction(URL_userUploadAttr, params)

// 博客上传图片接口
const URL_blogUploadImage = '/note/blog-upload-image'
export const blogUploadImage = (params?: any, option?: any) => postAction(URL_blogUploadImage, params)

// 大文件校验接口 续传 秒传
const URL_blogUploadVaild = '/note/big-file-vaild'
export const blogUploadVaild = (params?: any, option?: any) => postAction(URL_blogUploadVaild, params)
// 删除资源文件
const URL_FILEDEL = '/note/file-del'
export const fileDel = (params?: any, option?: any) => postAction(URL_FILEDEL, params)